// 发票审核
export const PARAMS_EXAMINE = [
    // {
    //     type: "DatePicker",
    //     field: "period",
    //     title: "选择月份",
    //     value: "",
    //     props: {
    //         type: "month",
    //         format: "YYYY-MM",
    //         placeholder: "请选择"
    //     }
    // },
    // {
    //     type: "select",
    //     field: "settleStatus",
    //     title: "结算状态",
    //     options: [{ label: '待提交', value: '0' }, { label: '待审核', value: '1' }, { label: '结算中', value: '2' },{ label: '结算成功', value: '3' }, { label: '部分结算成功', value: '4' }, { label: '结算失败', value: '5' }, { label: '已驳回',value: '6'}],
    //     props: { placeholder: "请选择" }
    // },
    {
        type: "a-input",
        field: "enterpriseName",
        title: "企业名称",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
]
export const COLUMNS_EXAMINE = [
    {
        title: '企业名称',
        dataIndex: 'enterpriseName',
    },
    {
        title: '历史开票次数',
        dataIndex: 'invoiceTotalCount',
    },
    {
        title: '历史开票总额(元)',
        dataIndex: 'invoiceTotalAmount',
    },
    {
        title: '可开票总额(元)',
        dataIndex: 'invoiceElseAmount',
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' }
    },
]
export const COLUMNS_EXAMINE_DETAIL = [
    {
        title: '发票编号',
        dataIndex: 'invoiceId',
    },
    // {
    //     title: '发票类型',
    //     dataIndex: 'invoiceTypeDesc',
    // },
    // {
    //     title: '开票类目',
    //     dataIndex: 'invoiceCategoryDesc',
    // },
    {
        title: '订单数量',
        dataIndex: 'orderCount',
    },
    {
        title: '订单金额',
        dataIndex: 'invoiceOrderAmount',
    },
    {
        title: '服务费金额',
        dataIndex: 'invoiceServiceFee',
    },
    {
        title: '开票金额',
        dataIndex: 'invoiceAmount',
    },
    {
        title: '申请开票时间',
        dataIndex: 'invoiceApplyTime',
    },
    {
        title: '开票状态',
        dataIndex: 'invoiceStatus',
        customRender: (text) => {
            if (text == '1') {
                return '待审核'
            } else if (text == '2') {
                return '已审核'
            } else if (text == '3') {
                return '已拒绝'
            }
            return ''
        },
    },
    {
        title: '审核人员',
        dataIndex: 'checkedByName',
    },
    {
        title: '审核时间',
        dataIndex: 'invoiceCheckTime',
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' }
    },
]